package com.yun.zf.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yun.zf.common.app.domain.ZfHouseInfoRent;
import com.yun.zf.common.app.dto.detail.HouseRentInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 租房维护表 Mapper 接口
 * </p>
 *
 * @author cj
 * @since 2021-03-09
 */
@Mapper
public interface ZfHouseInfoRentMapper extends BaseMapper<ZfHouseInfoRent> {

    @Select("<script>" +
            "select  ir.lease_start,ir.lease_end,ir.requirement,ir.extra_requirement,ir.unit,ir.bedroom_type,ir.is_balcony,ir.is_toilet " +
            "from  zf_house_info_rent ir WHERE ir.basic_id= #{basicId} and ir.city_code=#{cityCode} and ir.province_code=#{provinceCode} " +
            "</script>")
    HouseRentInfoDto getRentInfo(Long basicId, Long provinceCode, Long cityCode);
}
